Ext.define('cp.controller.Session',{
    extend: 'Ext.app.Controller',
    
    views: [

           ],
    
    init: function() {
        this.control({
            'viewport > panel': {
                render: this.onPanelRendered
            },
            'login_win button[action=submit]':{
                click: function(btn){
                    btn.up('login_win').submitForm();
                }
            }
                
                
                
        });
    },
 
    onPanelRendered: function() {
        var login = Ext.create('cp.view.ui.LoginWin',{});
        login.show();
    }
});